public without sharing class BigCustBudgetExecSheetHandler {

    public static  void updateAccount(List<BigCustBudgetExecSheet__c> list_new){
    
        Set<String>pks = new Set<String>();
        for(BigCustBudgetExecSheet__c bs : list_new){
            if(bs.nc_pk_cubasdoc__c != null){
                pks.add(bs.nc_pk_cubasdoc__c);
            }
        
        }
        //查询客户
        Map<String,Id> accs = new Map<String ,Id>();
        for(Account a:[select Id, NCICCode__c from Account where NCICCode__c in: pks]){
            accs.put(a.NCICCode__c,a.Id);
        }
        //更新客户
          for(BigCustBudgetExecSheet__c bs : list_new){
          System.debug(bs.nc_pk_cubasdoc__c);
              if(accs.containsKey(bs.nc_pk_cubasdoc__c))bs.Customer__c = accs.get(bs.nc_pk_cubasdoc__c);   
        }
    }

}